package com.loan.market.util

import android.widget.Toast
import com.hjq.toast.Toaster

fun showToast(msg: String?, duration: Int = Toast.LENGTH_SHORT) {
    if (msg.isNullOrBlank()) {
        return
    }
    if (duration == Toast.LENGTH_SHORT) {
        Toaster.showShort(msg)
    } else {
        Toaster.showLong(msg)
    }
}
